package org.fisco.bcos.sdk.jni.common;

import java.util.Arrays;

public class Response {
  private int errorCode;
  private String errorMessage;
  private byte[] data;

  public int getErrorCode() {
    return errorCode;
  }

  public void setErrorCode(int errorCode) {
    this.errorCode = errorCode;
  }

  public String getErrorMessage() {
    return errorMessage;
  }

  public void setErrorMessage(String errorMessage) {
    this.errorMessage = errorMessage;
  }

  public byte[] getData() {
    return data;
  }

  public void setData(byte[] data) {
    this.data = data;
  }

  @Override
  public String toString() {
    return "Response{"
        + "errorCode="
        + errorCode
        + ", errorMessage='"
        + errorMessage
        + '\''
        + ", data="
        + Arrays.toString(data)
        + '}';
  }
}
